package com.ruoyi.backend.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SurveyListData {

    public interface Upload {
    };

    @NotNull(groups = {Upload.class}, message = "调查时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate investigateTime;

    @NotNull(groups = {Upload.class}, message = "经度不能为空")
    private  Double latitude;

    @NotNull(groups = {Upload.class}, message = "纬度不能为空")
    private  Double longitude;

    @NotNull(groups = {Upload.class}, message = "高度不能为空")
    private  Double height;

    @NotNull(groups = {Upload.class}, message = "调查值不能为空")
    private String investigateValue;
}
